/* 基础样式 */
:root {
    --primary-color: #8e44ad;
    --secondary-color: #e74c3c;
    --accent-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --neon-color: #00fffc;
    --gradient-1: linear-gradient(45deg, #ff00cc, #3333ff);
    --gradient-2: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59);
    --gradient-3: linear-gradient(45deg, #00c9ff, #92fe9d);
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    color: #343a40;
    overflow-x: hidden;
    background-color: #f8f9fa;
    line-height: 1.7;
    background: linear-gradient(135deg, rgba(238,238,238,1) 0%, rgba(204,204,204,0.2) 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* 导航栏样式 */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(29,36,52,0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(29,36,52,0.95) 100%);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255,0,204,0.3);
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    position: relative;
    padding: 5px 0;
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-1);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 主页/封面样式 */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0b0033, #3a0088);
    color: white;
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"%3E%3Cdefs%3E%3Cpattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"%3E%3Cpath d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="1"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%" height="100%" fill="url(%23grid)" /%3E%3C/svg%3E');
    opacity: 0.7;
}

.tech-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.cube {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: cube 10s linear infinite;
    z-index: 0;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.cube:nth-child(1) {
    top: 10%;
    left: 45%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(255,0,204,0.2), rgba(51,51,255,0.2));
}

.cube:nth-child(2) {
    top: 70%;
    left: 30%;
    width: 100px;
    height: 100px;
    animation-delay: 2s;
    background: linear-gradient(45deg, rgba(18,194,233,0.2), rgba(246,79,89,0.2));
}

.cube:nth-child(3) {
    top: 40%;
    left: 80%;
    width: 60px;
    height: 60px;
    animation-delay: 4s;
    background: linear-gradient(45deg, rgba(0,201,255,0.2), rgba(146,254,157,0.2));
}

.cube:nth-child(4) {
    top: 80%;
    left: 70%;
    width: 50px;
    height: 50px;
    animation-delay: 6s;
    background: linear-gradient(45deg, rgba(255,0,204,0.2), rgba(51,51,255,0.2));
}

.cube:nth-child(5) {
    top: 20%;
    left: 15%;
    width: 70px;
    height: 70px;
    animation-delay: 8s;
    background: linear-gradient(45deg, rgba(18,194,233,0.2), rgba(246,79,89,0.2));
}

/* 添加更多立方体和星星动画 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: stars 20s linear infinite;
}

@keyframes stars {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100px);
    }
}

@keyframes cube {
    0% {
        transform: scale(0) rotate(0deg) translate(-50%, -50%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: scale(1.5) rotate(360deg) translate(-50%, -50%);
        opacity: 0;
    }
}

.hero-section h1 {
    margin-bottom: 20px;
    font-size: 3.8rem;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
    background: linear-gradient(to right, #ff00cc, #3333ff, #00fffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    color: #f8f9fa;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    border-radius: 30px;
    transition: all 0.5s ease;
    z-index: -1;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.6);
}

.btn-outline-light {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-outline-light:hover::before {
    height: 100%;
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    border-color: white;
    color: white !important;
}

/* 通用部分样式 */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, #8e44ad, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.line {
    width: 70px;
    height: 3px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 3px;
}

/* 关于我部分 */
.about-img {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(142, 68, 173, 0.5), rgba(41, 128, 185, 0.5));
    opacity: 0;
    transition: all 0.5s ease;
}

.about-img:hover::before {
    opacity: 1;
}

.about-img img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.floating-card {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: var(--gradient-2);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.card-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.about-content {
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(142, 68, 173, 0.05), rgba(41, 128, 185, 0.05));
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.info-item {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.info-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-right: 5px;
}

.info-value {
    color: var(--primary-color);
    font-weight: 600;
}

/* 教育背景部分 */
.education-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.education-icon {
    flex: 0 0 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
}

.education-content {
    flex: 1;
}

.education-content h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.period {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.degree {
    font-weight: 600;
    margin-bottom: 5px;
}

.gpa {
    color: var(--primary-color);
    font-weight: 600;
}

/* 项目经验部分 */
.project-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-1);
    transition: all 0.5s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card:hover::before {
    height: 100%;
}

.project-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-duration, .project-tech {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.project-tech {
    font-weight: 600;
    color: var(--primary-color);
}

.project-description p {
    margin-bottom: 15px;
}

.project-description ul {
    padding-left: 20px;
}

.project-description li {
    margin-bottom: 5px;
}

/* 实习经历部分 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5px;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid var(--primary-color);
}

.timeline-content {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.position {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.duration {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 5px;
}

/* 技能专长部分 */
.skill-category {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-2);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    margin-bottom: 25px;
    color: var(--dark-color);
}

.skill-category h3 i {
    margin-right: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-item {
    margin-bottom: 20px;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--gradient-3);
    border-radius: 10px;
    animation: progressAnimation 1.5s ease-in-out;
}

@keyframes progressAnimation {
    0% {
        width: 0;
    }
}

/* 生活照部分 */
.photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    height: 300px;
    border: 3px solid white;
    transition: all 0.5s ease;
}

.photo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(142, 68, 173, 0.3), rgba(41, 128, 185, 0.3));
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.photo-card:hover::before {
    opacity: 1;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: all 0.5s ease;
    z-index: 2;
}

.photo-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #8e44ad;
}

.photo-card:hover img {
    transform: scale(1.1) rotate(3deg);
}

.photo-card:hover .photo-overlay {
    transform: translateY(0);
}

/* 兴趣爱好部分 */
.interest-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.interest-item {
    display: flex;
    margin-bottom: 25px;
}

.interest-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
}

.interest-content {
    flex: 1;
}

.interest-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* 性格特点部分 */
.character-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.character-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(0, 123, 255, 0.05);
    transition: all 0.3s ease;
}

.character-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.character-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin: 0 auto 15px;
}

.character-item h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* 联系方式部分 */
.contact-section {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
}

.contact-item {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    flex: 0 0 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-text h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
    color: white;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 35px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 添加霓虹灯效果 */
.neon-text {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #0073e6, 0 0 20px #0073e6, 0 0 25px #0073e6, 0 0 30px #0073e6, 0 0 35px #0073e6;
}

.neon-border {
    border: 2px solid #fff;
    border-radius: 15px;
    box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #0073e6, 0 0 20px #0073e6, 0 0 25px #0073e6, 0 0 30px #0073e6, 0 0 35px #0073e6;
}

/* 页脚部分 */
.social-links {
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .about-img {
        margin-bottom: 30px;
    }
    .floating-card {
        right: 20px;
    }
    .timeline::before {
        left: 15px;
    }
    .timeline-dot {
        left: 3px;
    }
    .timeline-item {
        padding-left: 40px;
    }
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .photo-card {
        height: 250px;
    }
}

/* 表单提交提示信息动画 */
.contact-alert {
    transition: all 0.5s ease;
}

.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* 表单输入聚焦效果增强 */
.form-control:focus {
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.3);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
}

/* 提交按钮点击效果 */
.btn-primary:active {
    transform: scale(0.95);
}
